#ifndef _plane_h_included_
#define _plane_h_included_

#include "Primitive.h"
#include "DXUtil.h"
#include <d3dx9.h>
#include <d3d9.h>
#include "Ray.h"

class Plane : public Primitive
{
private:

	int static const TEXTURE = 0;
	
public:
	D3DXVECTOR2 textureCenter;
	D3DXVECTOR3 point;
	float Distance, Width, Depth;
	virtual float Intersect(RAY &ray);
	virtual void Normal(D3DXVECTOR3* output, D3DXVECTOR3 &point){*output = D3DXVECTOR3(0,1,0);}
	virtual void GetColor(D3DXCOLOR* pColor, D3DXVECTOR3* intersectionPoint);
};

#endif